package com.example.emos.api.db.dao;

import com.example.emos.api.db.pojo.TbUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;

/**
 * @author ：Supyo
 * @date ：Created in 2021/11/16 15:04
 * @description：
 */
@Mapper
public interface TbUserDao {

    public Integer login(HashMap param);

    public int updatePassword(HashMap param);

    public ArrayList<HashMap> searchUserByPage(java.util.HashMap param);

    public long searchUserCount(HashMap param);

    public int insert(TbUser user);

    public HashMap searchUserSummary(int userId);

    public TbUser selectUserById(Integer id);

    public int update(HashMap param);

    public int deleteUserByIds(Integer[] ids);

    public Set<String> searchUserPermissions(int userId);

    public int countUserLeave();

    public int countTotalUser();

    public int countMonthUser(String firstday, String lastday);

    public int updateStatusByIds(int id, int status1);

    public HashMap selectUserById1(Integer id);

    public int selectStatus(Integer userId);

    public int leave(Integer id);

    public void insertImg(int userId, String fileAddress);
}
